package dk.jwood.android.graph;

import java.util.List;


public interface DataProviderManager {

	
	public interface DataProviderManagerListener {
		
		public void dataProviderAdded(DataProvider provider);
		
	}
	
	public List<DataProvider> getDataProviders();
	
	public DataProvider getDataProvider(String id);
	

	public void addDataProvider(DataProvider dp);
	
	public abstract void addDataPoints(String id, long timestamp, float... values);

	public abstract void addListener(DataProviderManagerListener listener);

	public abstract void removeListener(DataProviderManagerListener listener);

	public abstract void savePrefs(DataProvider dataProvider);

	public abstract void loadPrefs(DataProvider dataProvider);

}